import { defHttp } from '/@/utils/http/axios';

const Api = {
  Scripts: '/blog/scripts',
};

/**
 * 获取公开脚本列表
 */
export const getPublicScripts = (params: any) => {
  return defHttp.get({
    url: `${Api.Scripts}/public/list`,
    params,
  });
};

/**
 * 获取公开脚本详情
 */
export const getPublicScriptDetail = (id: string) => {
  return defHttp.get({
    url: `${Api.Scripts}/public/detail`,
    params: { id },
  });
}; 